package com.ywqf_api.service;

import com.ywqf_api.dto.in.*;
import com.ywqf_api.entity.*;
import io.swagger.models.auth.In;


import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public interface MobileService {

    int saveLogin(String phone,String password);

    int findCustomerId(String phone);

    int getUserInfos(String telephone,String password);

    int getUserInfos(String telephone);

    Map getUserInfo(UserLoginDto userLoginDto);

    List<Banner> findBannerList(Integer communityId);

    List<CommunityCorps> findCommunityCorp(String search);

    List<HouseIdAndNum> findHouseIdNum(String search,Integer communityId);

    int saveComplaint(Integer customerId,String content);

    List findRoleList(Integer communityId);

   Map findQuestionnaire(Integer communityId);

   int findQuestionnaireCustomer(Integer customerId,Integer questionId);

   int saveQuestionnaire(Integer customerId,Integer questionId,HttpServletRequest request);

    Water findWaterFeeTimeAndCorp(Integer houseId, Integer communityId);

    Water findCorp(Integer communityId);

    Electricity findElectricityFeeTimeAndCorpAndHouseNum(Integer houseId, Integer communityId);

    int findElectricityHouse(Integer houseId);

    Map findHeatingFeeData(Integer houseId,Integer communityId);

    Map findEstateFeeData(Integer houseId,Integer communityId);

    Map findParkingFeeData(Integer houseId,Integer communityId,Integer parkingSpaceId);

    int saveWaterFee(WaterFeeDto waterFeeDto);

    int saveWaterFees(WaterFeeDto waterFeeDto);

    int saveElectricityFee(ElectricityFeeDto electricityFeeDto);

    int saveElectricityFees(ElectricityFeeDto electricityFeeDto);

    int saveHeatingFee(HeatingFeeDto heatingFeeDto);

    int saveHeatingFees(HeatingFeeDto heatingFeeDto);

    int saveParkingFee(ParkingFeeDto parkingFeeDto);

    int saveParkingFees(ParkingFeeDto parkingFeeDto);

    int saveEstateFee(EstateFeeDto estateFeeDto);

    int saveEstateFees(EstateFeeDto estateFeeDto);

    List findEstateCalendar(Integer houseId);

    List findParkingCalendar(Integer parkingSpaceId);

    int updateOrderStatus(int orderId,String thirdNo);

}
